﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using VOL.Core.Utilities;
using VOL.Domain.IServices.SchedulingManagement;

namespace VOL.WebApi.Controllers.SchedulingManagement
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TeamTypeModelController : ControllerBase
    {
        private readonly ITeamTypeModelService _teamTypeModelService;

        public TeamTypeModelController(ITeamTypeModelService teamTypeModelService)
        {
            _teamTypeModelService = teamTypeModelService;
        }

        /// <summary>
        /// 获取班组类型列表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<WebResponseContent> GetTeamType()
        {
            return await _teamTypeModelService.GetTeamType();
        }
    }
}
